package com.tmanager.persistence.entity;

public enum ActivityType {
	UNDEFINED(-1), PROCCESS(0), WINDOW(1);
	private final int id;

	ActivityType(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public static ActivityType convert(int i) {
		for (ActivityType current : values()) {
			if (current.getId() == i) {
				return current;
			}
		}
		return UNDEFINED;
	}
}
